export function formatDate(data) {
  let date = new Date(data)
  let Y = date.getFullYear() + '-';
  let M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
  let D = date.getDate();
  return Y+M+D;
}
export function byte (date) {
  let num = new Number(date);
  return num.toFixed(3)
}
